package com.queming.core.exception;

/**
 * @author chencidiao
 * @date 2022/04/19 19:28
 * 全局错误类
 **/
public class BizException extends RuntimeException {
    private final Integer code;

    public BizException(ExceptionType exceptionType) {
        super(exceptionType.getMessage());
        this.code = exceptionType.getCode();
    }

    public Integer getCode() {
        return code;
    }
}
